package com.demo.resourcecode.filter;

import javax.servlet.http.HttpServletRequest;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

import com.demo.resourcecode.c9mybatis.User;

@RestController
public class UserController {

	@GetMapping("/user")
	public String user(){
		return "test";
	}

	@PostMapping("/user")
	public String user(@RequestBody User user, HttpServletRequest request){
		request.getParameter("name");
		return "test" + user;
	}

}
